#include <51func.h>
int main(int argc, char *argv[])
{
    // ./1_open_creat file1
    ARGS_CHECK(argc,2);
    int fd = open(argv[1],O_RDWR|O_CREAT,0666);
    ERROR_CHECK(fd,-1,"open");
    printf("fd = %d\n", fd);
    return 0;
}

